package com.xdcplus.web.common.pojo.vo;

import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.List;
import java.util.Map;

/**
 * @author xukw
 * @date 2023/11/22 14:50
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class DmReworkSummaryAllVO implements Serializable, Cloneable {

    /**
     * 日期统计
     */
    @ApiModelProperty(name = "日期统计", notes = "")
    List<DmReworkSummaryDateVO> qualityDate;
    /**
     * 表格统计
     */
    @ApiModelProperty(name = "表格统计", notes = "")
    List<DmReworkSummaryVO> qualitySum;

    /**
     * 累积柱状图-线别+不良,data元素和线别一一对应
     * {xAxis: ['','',''],series:[{name:'',data:[1,2,3,4,5,]}]}
     */
    @ApiModelProperty(name = "累积柱状图", notes = "")
    Map<String,Object> histogramSummary;


    /**
     * 柏拉图-不良项，不良数量,不良总占比【柱状】，不良占比取反【折线】
     * {xAxis: ['','',''],series1:[1,2,3,4,5,....],series2:[1,2,3,4,5,....],series3:[1,2,3,4,5,....]}
     */
    @ApiModelProperty(name = "柏拉图", notes = "")
    Map<String,Object> platoPoorSummary;


    /**
     * 饼状图-不良项，不良数量+不良总占比【柱状】，不良占比取反【折线】
     * 小数值
     * [{name:,value:,totalRate:,poorRate:,ngNumber:0}]
     */
    @ApiModelProperty(name = "饼状图", notes = "")
    Map<String,Object> pieSummary;

}
